package cn.rongdao.jrkabao.model.cashadvance;

import com.mifengkong.frtools.http.request.HttpFunction;
import com.mifengkong.frtools.util.FRString;

import cn.rongdao.jrkabao.bean.cashadvance.CashAdvanceSuccessBean;
import cn.rongdao.jrkabao.model.api.BaseKaMaoModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 2017/6/3
 */

public class CashSuccessInfoModel extends BaseKaMaoModel {

    public static CashSuccessInfoModel getInstance() {
        return getPresent(CashSuccessInfoModel.class);
    }

    public void execute(String orderNum,Observer<CashAdvanceSuccessBean> observer) {
        addParamStrings("order_no", FRString.valueOf(orderNum));
        Observable<CashAdvanceSuccessBean> observable = mServletApi.getCashSuccessInfoData(mParams).map(new HttpFunction<CashAdvanceSuccessBean>());
        toSubscribe(observable, observer);
    }
}
